package com.h3c.ptability.mapstruct;

import com.h3c.ptability.entity.BdPost;
import com.h3c.ptability.vo.BdPostVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface BdPostMapstruct {

    BdPostMapstruct INSTANCE = Mappers.getMapper(BdPostMapstruct.class);

    /**
     * 实体类转成DTO
     *
     * @param bdPost db
     * @return dto
     */
    BdPostVO dbToVO(BdPost bdPost);

    List<BdPostVO> dbToVO(List<BdPost> bdPost);
}
